'use strict';

const Controller = require('egg').Controller;


class HomeController extends Controller {
  async index() {
    const { ctx } = this;
    console.log(ctx.info);
    ctx.body = 'hi, egg';
  }

  async demo() {
    const { ctx } = this;
    console.log(ctx.info);
    ctx.body = 'hi, demo';
  }

  async appLication() {
    const { ctx, app } = this;
    // const scripts = app.getPackage('scripts');
    // console.log(scripts);
    // console.log(app.allPacks);
    ctx.body = 'appLication';
  }
}

module.exports = HomeController;
